//
//  CONSTS.h
//  Hupan
//
//  Copyright 2010 iTotem Studio. All rights reserved.
//


#define REQUEST_DOMAIN @"http://121.199.38.186/satgrammar/intf/" // default env
#define ScreenHeight [[UIScreen mainScreen] bounds].size.height
//text
#define TEXT_LOAD_MORE_NORMAL_STATE @"向上拉动加载更多..."
#define TEXT_LOAD_MORE_LOADING_STATE @"更多数据加载中..."

//const
#define SCREEN_HEIGHT_OF_IPHONE5 568
#define SCREEN_HEIGHT_OF_IPHONE4 480
#define SCREEN_WIDTH_OF_IPHONE 320
#define is4InchScreen() ([UIScreen mainScreen].bounds.size.height == SCREEN_HEIGHT_OF_IPHONE5)
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#define isReachability          [[Reachability reachabilityForInternetConnection] currentReachabilityStatus] != NotReachable

#define kAppKey             @"1934704304"//@"3425851065"
#define kAppSecret          @"c4fca5c0238d8de03a4a9063fe03b1d7"//@"df408e1f61d462205d0c65d05c14323b"
#define kAppRedirectURI     @"http://blog.sina.com.cn/jiang12peng123"//@"http://wordhot.net/satgrammar/callback"

#define KEY_WHOLE_VERSION   @"KEY_WHOLE_VERSION"
#define KEY_USER_ID         @"KEY_USER_ID"
#define KEY_STUDY_WHOLE_VERSION         @"KEY_STUDY_WHOLE_VERSION"
#define WHOLE_VERSION           @"WHOLE_VERSION"
#define APP_HAS_LAUNCHED    @"APP_HAS_LAUNCHED"

typedef enum{
    UpdateViewTypeCheckUpdate = 101,
    UpdateViewTypeNotNetwork,
    UpdateViewTypeNeedUpdate,
    UpdateViewTypeNewest,
    UpdateViewTypeFailed,
}UpdateViewType;
//other consts
typedef enum{
	kTagWindowIndicatorView = 501,
	kTagWindowIndicator,
} WindowSubViewTag;

typedef enum{
    kTagHintView = 101
} HintViewTag;

typedef enum{
    SearchTableViewStyleList = 1,
    SearchTableViewStyleResult,
}SearchTableViewStyle;

typedef enum{
    DetailTableViewStyleTeach = 1,
    DetailTableViewStyleNote,
}DetailTableViewStyle;

typedef enum{
    NoteTableViewStyleStudy = 1,
    NoteTableViewStyleNote,
}NoteTableViewStyle;

typedef enum{
    DetailKnowledgeCellTypeWithImage = 1,
    DetailKnowledgeCellTypeWithOutImage,
}DetailKnowledgeCellType;

typedef enum{
    NoteBookCellTypeWithImageOutContent = 1,
    NoteBookCellTypeWithCotentOutImage,
    NoteBookCellTypeWithCotentWithImage,
}NoteBookCellType;

typedef enum{
    WebviewContentTypeFeedback = 1,
    WebviewContentTypeGoodComment,
    WebviewContentTypeHelpUse,
    WebviewContentTypeRelief,
}WebviewContentType;
